package game.components;

import game.players.SoccerPlayer;

import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Sprite;

public class UserPlayerMark extends WorldSprite{
	
	private SoccerPlayer player;

	public UserPlayerMark(SoccerPlayer sp) {
		super(sp.getX(),sp.getY());
		this.player = sp;
		this.setAppearance(Sprite.fromImage("/images/flecha.png").scale(0.05));
	}
	
	@Override
	public void update(DeltaState deltaState) {
		super.update(deltaState);
		this.setX(this.player.getX() + 20);
		this.setY(this.player.getY() - 25);
	}
	
	
	
	
	

	public SoccerPlayer getPlayer() {
		return player;
	}

	public void setPlayer(SoccerPlayer player) {
		this.player = player;
	}

}
